﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace comm.objst
{
    [Serializable]
    public class SpaceHeroStat
    {
        private string _factionId = null;
        public string FactionId
        {
            get
            {
                if (_factionId == null)
                {
                    _factionId = "";
                }
                return _factionId;
            }
            set { _factionId = value; }
        }

        public int HeroCount { get; set; }
    }

    [Serializable]
    public class SpaceInfo
    {
        private string _spaceId = null;
        public string SpaceId
        {
            get
            {
                if (_spaceId == null)
                {
                    _spaceId = "";
                }
                return _spaceId;
            }
            set { _spaceId = value; }
        }

        private string _name = null;
        public string Name
        {
            get
            {
                if (_name == null)
                {
                    _name = "";
                }
                return _name;
            }
            set { _name = value; }
        }

        public SpaceType SpaceType { get; set; }
        public SpaceOccupyType OccupyType { get; set; }
        public SpaceState State { get; set; }

        public bool DisplayFlag { get; set; }

        private string _factionId = null;
        public string FactionId
        {
            get
            {
                if (_factionId == null)
                {
                    _factionId = "";
                }
                return _factionId;
            }
            set { _factionId = value; }
        }

        private List<SpaceHeroStat> _heroStatList = null;
        public List<SpaceHeroStat> HeroStatList
        {
            get
            {
                if (_heroStatList == null)
                {
                    _heroStatList = new List<SpaceHeroStat>();
                }
                return _heroStatList;
            }
            set { _heroStatList = value; }
        }
    }
}
